import {routes} from "@/router/homes.js";
/**
 * 菜单设置
 */

const state = {
    allMenuList: routes, //所有菜单
    secondMenuList: []//routes[0].children || [] //二级菜单
};

const mutations = {

};

const actions = {
    // 二级菜单
    updateSecondMenuList({state}, secondMenuList) {
        return new Promise((resolve) => {
            state.secondMenuList = secondMenuList;
            resolve();
        });
    }
};

export default {
    state,
	mutations,
	actions
}